geo_set = set()

INPUT_CSV_NAME = 'taxi_february.txt'
OUTPUT_CSV_NAME = 'data.csv'

with open(INPUT_CSV_NAME) as csv:
    for line in csv.readlines():
        tokens = line.split(";")[-1].split("(")[-1].split(")")[0].split()
        geo_set.add((str(tokens[0]),str(tokens[1])))
print("found "+str(len(geo_set))+" dock.")
with open(OUTPUT_CSV_NAME,'w') as csv:
    i = 0;
    for geo in geo_set:
        csv.write("{:.13f},{:.13f}\n".format(float(geo[1]),float(geo[0])))
        i+=1